package com.twarder.hibernate.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * Directory entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Directory implements java.io.Serializable {

	// Fields

	private Integer id;
	private Directory directory;
	private String descript;
	private String other;
	private Set roledirs = new HashSet(0);
	private Set directories = new HashSet(0);

	// Constructors

	/** default constructor */
	public Directory() {
	}

	/** full constructor */
	public Directory(Directory directory, String descript, String other,
			Set roledirs, Set directories) {
		this.directory = directory;
		this.descript = descript;
		this.other = other;
		this.roledirs = roledirs;
		this.directories = directories;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Directory getDirectory() {
		return this.directory;
	}

	public void setDirectory(Directory directory) {
		this.directory = directory;
	}

	public String getDescript() {
		return this.descript;
	}

	public void setDescript(String descript) {
		this.descript = descript;
	}

	public String getOther() {
		return this.other;
	}

	public void setOther(String other) {
		this.other = other;
	}

	public Set getRoledirs() {
		return this.roledirs;
	}

	public void setRoledirs(Set roledirs) {
		this.roledirs = roledirs;
	}

	public Set getDirectories() {
		return this.directories;
	}

	public void setDirectories(Set directories) {
		this.directories = directories;
	}


	public boolean equals(Object obj) {
		// TODO Auto-generated method stub
		return this.id.equals(((Directory)obj).id);
	}

	
	public int hashCode() {
		// TODO Auto-generated method stub
		return this.id;
	}
	

}